package net.citrite.android.logger;

import java.util.logging.Formatter;
import java.util.logging.Handler;
import java.util.logging.LogRecord;

/**
 * Created by taodongl on 5/6/15.
 */
public class SummaryReportFormatter extends Formatter {
    @Override
    public String format(LogRecord record) {
        String message = formatMessage(record);
        return message + "\r\n";
    }

    @Override
    public String getHead(Handler h) {
        //final String header = "files\terrors\twarnings\titems\tbegin\tend\tname\tversion\n";
        final String header = "files,errors,warnings,items,begin,end,name,version\r\n";
        return header;
    }
}
